<template>
	<view>
		<view class="top">
			<navigator url="/pages/index/index" open-type="switchTab">
				<image class="back" src="/static/images/白色左箭头.png" mode=""></image>
			</navigator>
			<view class="title">洗车</view>
		</view>

		<view style="margin-top: -240rpx;">
			<uni-card>
				<image class="image" src="/static/images/天安门.jpg" mode=""></image>
				<view class="carView">
					<!-- 左边部分 -->
					<view class="carItem1">
						<view>大美汽车保养厂（解放路店）</view>
						<uni-rate :size="16" :value="4" :readonly="true" />
						<view>最高评分：4分</view>
						<view>营业时间：周一至周五 早上8:00-晚上22:00</view>
						<view>位置：山阳区人民路与解放路交叉口</view>
						<view>销量：556</view>
					</view>
				</view>
			</uni-card>
		</view>

		<!-- 服务项目 -->
		<view>
			<uni-card>
				<view class="fwView">
					<view>服务项目</view>
					<view>
						<view class="fwItem">
							<view>小保养套餐1（机滤）</view>
							<view>￥ 35.9</view>
						</view>
						<view class="fwIntro">这里是精洗服务的详细介绍，这里是精洗服务的详细介绍，这里是精洗服务的详细介绍</view>
					</view>
					<view>
						<view class="fwItem">
							<view>小保养套餐2（合成机油＋机滤）</view>
							<view>￥ 99.9</view>
						</view>
						<view class="fwIntro">这里是精洗服务的详细介绍，这里是精洗服务的详细介绍，这里是精洗服务的详细介绍</view>
					</view>
					<view>
						<view class="fwItem">
							<view>小保养套餐3（合成机油）</view>
							<view>￥ 49.9</view>
						</view>
						<view class="fwIntro">这里是精洗服务的详细介绍，这里是精洗服务的详细介绍，这里是精洗服务的详细介绍</view>
					</view>

				</view>
			</uni-card>
		</view>

		<!-- 服务评价 -->
		<view>
			<uni-card>
				<view class="pjView">
					<view>服务评价</view>
					<!-- 左边部分 -->
					<view class="pjItem">
						<view class="img">
							<!-- <image src="../../../static/images/1.png" mode=""></image> -->
						</view>

						<!-- 右边部分 -->
						<view class="pj">
							<view>黄**</view>
							<uni-rate :size="16" :value="4" :readonly="true" />
							<view>2022-12-09</view>
							<view>洗的非常干净，几个小伙子很用心，态度也很好，强烈推荐来这家店洗车！！！</view>
						</view>
					</view>
					<view class="pjItem">
						<view class="img">
							<!-- <image src="../../../static/images/1.png" mode=""></image> -->
						</view>

						<!-- 右边部分 -->
						<view class="pj">
							<view>黄**</view>
							<uni-rate :size="16" :value="4" :readonly="true" />
							<view>2022-12-09</view>
							<view>洗的非常干净，几个小伙子很用心，态度也很好，强烈推荐来这家店洗车！！！</view>
						</view>
					</view>
					<view class="pjItem">
						<view class="img">
							<!-- <image src="../../../static/images/1.png" mode=""></image> -->
						</view>

						<!-- 右边部分 -->
						<view class="pj">
							<view>黄**</view>
							<uni-rate :size="16" :value="4" :readonly="true" />
							<view>2022-12-09</view>
							<view>洗的非常干净，几个小伙子很用心，态度也很好，强烈推荐来这家店洗车！！！</view>
						</view>
					</view>

				</view>

			</uni-card>
		</view>

		<!-- 加入购物车 -->
		<view class="goods-carts">
			<uni-goods-nav :options="options" :fill="true" :button-group="buttonGroup" @click="onClick"
				@buttonClick="buttonClick" />
		</view>



	</view>
</template>

<script>
	export default {
		data() {
			return {
				options: [{
					icon: 'chat',
					text: '客服'
				}, {
					icon: 'shop',
					text: '店铺',
					info: 0,
					infoBackgroundColor: '#007aff',
					infoColor: "#f5f5f5"
				}, {
					icon: 'cart',
					text: '购物车',
					info: 0
				}],
				buttonGroup: [{
						text: '加入购物车',
						// backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
						backgroundColor: 'linear-gradient(90deg, #1E83FF, #0053B8)',
						color: '#fff'
					},
					{
						text: '立即购买',
						// backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
						backgroundColor: 'linear-gradient(90deg, #60F3FF, #088FEB)',
						color: '#fff'
					}
				],

			}
		},
		methods: {
			onClick(e) {
				uni.showToast({
					title: `点击${e.content.text}`,
					icon: 'none'
				})
			},
			buttonClick(e) {
				console.log(e)
				this.options[2].info++
			}

		}
	}
</script>

<style scoped>
	/* 背景图片 */
	.top {
		width: 100%;
		padding-bottom: 120px;
		background: url(../../../static/images/组 8.png);
		background-repeat: no-repeat;
		background-size: cover;
	}

	.top .back {
		position: absolute;
		margin-left: 20px;
		margin-top: 30px;
		width: 15px;
		height: 15px;
		z-index: 2;
	}

	.top .title {
		text-align: center;
		font-size: 18px;
		color: #fff;
		line-height: 44px;
		/* 根据实际需要调整 */
		padding-top: 20px;
	}

	image {
		width: 610rpx;
		height: 350rpx;
		padding-top: 10rpx;
	}

	.carView {
		margin-top: 35rpx;
		margin-bottom: 22rpx;

	}

	.carItem1>view:nth-child(1) {
		font-size: 30rpx;
		font-weight: bold;
		margin-bottom: 15rpx;
	}

	.carItem1>view:nth-child(3) {
		font-size: 22rpx;
		font-weight: bold;
	}

	.carItem1>view:nth-child(4) {
		font-size: 22rpx;
		font-weight: bold;
	}

	.carItem1>view:nth-child(5) {
		font-size: 22rpx;
		font-weight: bold;
	}

	.carItem1>view:nth-child(6) {
		font-size: 22rpx;
		color: royalblue;
		font-weight: bold;
	}

	/* 服务信息 */
	.fwView>view:nth-child(1) {
		font-size: 33rpx;
		font-weight: bold;
		margin: 20rpx 0rpx;
	}

	.fwItem {
		height: 60rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 20rpx;
	}

	.fwItem>view:nth-child(1) {
		font-size: 28rpx;
		font-weight: bold;
		color: cornflowerblue;
	}

	.fwItem>view:nth-child(2) {
		font-size: 28rpx;
		color: red;
	}

	.fwIntro {
		font-size: 25rpx;
		/* font-weight: bold; */
		color: darkgray;
	}

	/* 服务评价 */
	.pjView>view:nth-child(1) {
		font-size: 33rpx;
		font-weight: bold;
		margin: 20rpx 0rpx;
	}

	.pjItem {
		height: 220rpx;
		display: flex;
		justify-content: space-between;
		/* align-items: center; */
		margin-top: 25rpx;
		/* border: 2rpx solid blue; */

	}

	.pj {
		width: 500rpx;
		height: 200rpx;
	}

	.pj>view:nth-child(1) {
		font-size: 25rpx;
		font-weight: bold;
	}

	.pj>view:nth-child(3) {
		font-size: 20rpx;
	}

	.pj>view:nth-child(4) {
		font-size: 22rpx;
		/* font-weight: bold; */
	}

	.img {
		width: 100rpx;
		height: 100rpx;
		border-radius: 50%;
		background-image: url("../../../static/images/tx.jpg");
		/* background-repeat: no-repeat; */
		background-size: contain;
		background-position: center;
	}

	/* 购物车 */
	.example-body {
		padding: 0;
		/* #ifndef APP-NVUE */
		display: block;
		/* #endif */
	}

	.goods-carts {
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: column;
		position: fixed;
		left: 0;
		right: 0;
		/* #ifdef H5 */
		left: var(--window-left);
		right: var(--window-right);
		/* #endif */
		bottom: 0;
	}
</style>